package org.jsbd.boss.dao.impl;

import java.util.List;
import java.util.Map;

import org.jsbd.boss.domian.MiguDataSh;
import org.jsbd.boss.domian.channel.SimulatorActionLog;
import org.jsbd.boss.domian.monitor.MonitorDownloadInfo;
import org.springframework.stereotype.Service;

import edu.hziee.common.queue.IBatchExecutor;

@Service("simulatorActionLogDao")
public class SimulatorActionLogDAOImpl extends CrackLogBaseDao implements IBatchExecutor<SimulatorActionLog>,ISimulatorActionLogDAO{

	@Override
	public void execute(List<SimulatorActionLog> records) {
		super.batchInsert("qy_simulator_action_log.INSERT_SIMULATOR_ACTION_LOG", records);
	}
	
	/**
	 * getSimulatorActionLogList:按条件获取模拟器行为日志
	 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
	 * @return
	 */
	public List<Map<String,Object>> getSimulatorActionLogList(Map<String,Object> conditionMap){
		return super.queryForList("qy_simulator_action_log.get_simulator_action_log_list", conditionMap);
	}
	
	public List<MonitorDownloadInfo> getSimulatorActionDownloadLogList(Map<String,Object> conditionMap){
		return super.queryForList("qy_simulator_action_log.get_simulator_action_download_log_list", conditionMap);
	}
	

	@Override
	public List<MiguDataSh> getMiguDataList(MiguDataSh miguDataSh) {
		return super.queryForList("qy_simulator_action_log.getMiguDataList",miguDataSh);
	}

	@Override
	public List<MiguDataSh> getMiguDataStatisticsList(MiguDataSh miguDataSh) {
		return super.queryForList("qy_simulator_action_log.getMiguDataList",miguDataSh);
	}

}
